package cn.alex.sso.project.service;

import cn.alex.sso.project.entity.SysRole;
import cn.alex.sso.project.entity.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Alex
* @description 针对表【sys_user_role(用户和角色关联表)】的数据库操作Service
* @createDate 2024-09-24 17:05:38
*/
public interface SysUserRoleService extends IService<SysUserRole> {

    /**
     * 改变用户角色关联
     * @param userId 用户ID
     * @param roleList 角色列表
     */
    void change(Long userId, List<SysRole> roleList);

}
